import generateApiFn from '../generateApiFn'
const _module = '/invoice'
const commonOption = {}
// 主页列表
const apiUrlObj = {
  checkSaleOrder: commonOption, // 验证销售单
  getSaleInfo: commonOption, // 销售单详情
  getpagelist: commonOption, // 发票列表
  create: commonOption, // 新增发票
  update: commonOption, // 编辑发票
  applyInvoice: commonOption, // 申请开票
  setStatus: commonOption, // 录入发票
  recycleInvoice: commonOption, // 回收发票
  delete: commonOption, // 删除发票
  exportField: commonOption, // 获取导出字段
  exportInvoice: commonOption, // 导出发票
  getInfo: commonOption, // 发票详情
  getSalePriceData: commonOption, // 发票金额
  getSaleOrderList: commonOption // 销售单下拉
}

const invoiceApi = generateApiFn(_module, apiUrlObj)
export default invoiceApi
